# Contributor: Denis Ryabyy <vv1r0x@gmail.com>
# Maintainer: Denis Ryabyy <vv1r0x@gmail.com>
pkgname=ctorrent-dnh
pkgver=3.3.2
pkgrel=2
pkgdesc="Enhanced CTorrent is a BitTorrent client for unix-like environments"
url="http://www.rahul.net/dholmes/ctorrent/"
arch="all"
license="GPL-2.0"
source="http://www.rahul.net/dholmes/ctorrent/${pkgname}${pkgver}.tar.gz
	unistd.patch"
builddir="$srcdir/${pkgname}${pkgver}"

build() {
	cd "$builddir"
	./configure --prefix=/usr && make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="e59b2b899b8603e42a5754d5ce65f661b135b8e107140e0472af379b2b06ee2985239ed0ebf19dcaef788e617b99eac35ad32ad2d10352e2fcf5a6dc084d27dd  ctorrent-dnh3.3.2.tar.gz
0f1e851202c8945c6a8c630b1ea54426bef542c7661c75d0ea97a7bd176cf503ba529a2439b4c13f7c3e7631854c9a207a788ac77fd5774e43b236c76bc57bf0  unistd.patch"
